export ARCH=arm64#设置平台架构
export CROSS_COMPILE=aarch64-linux-gnu-#交叉编译器前缀
obj-m += ft5x06_driver.o    #此处要和你的驱动源文件同名


APP = 04_app

#KDIR :=/home/topeet/Linux/linux_sdk/kernel    #这里是你的内核目录   

KDIR = /home/robin/work/kernel-rockchip-nanopi4-linux-v4.4.y



PWD ?= $(shell pwd)
all:
# 	make -C $(KDIR) M=$(PWD) modules    #make操作
	aarch64-linux-gnu-gcc $(APP).c -o $(APP).out
	
clean:
	make -C $(KDIR) M=$(PWD) clean    #make clean操作

